package com.auxgroup.smarthome.app.service.inner;

import com.auxgroup.bridge.app.inner.vo.PushRecordVo;
import com.auxgroup.smarthome.app.service.PushRecordInnerServiceFallback;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by lixiaoxiao on 17-10-16.
 */
@FeignClient(name = "INNER-SERVICE", fallback = PushRecordInnerServiceFallback.class)
public interface PushRecordInnerService {
    @RequestMapping(value = "/inner/pushRecord/list/{uid}", method = RequestMethod.GET)
    ApiResponse<List<PushRecordVo>> findAllByUid(@PathVariable("uid") String uid, @RequestParam("time") String time);
}
